function __G__TRACKBACK__(errorMessage)
    print("----------------------------------------")
    print("LUA ERROR: " .. tostring(errorMessage) .. "\n")
    print(debug.traceback("", 2))
    mgrs.event:dispatchEvent({name = enums.Event.APPError,info = errorMessage});
    print("----------------------------------------")
end	
package.path = package.path .. ";src/";
local target = cc.Application:getInstance():getTargetPlatform()
local projectDir = "../../../";
if target == 0 then
    package.path = package.path .. ";code/";
    cc.FileUtils:getInstance():addSearchPath(projectDir .. "pkg/");
end
cc.FileUtils:getInstance():setPopupNotify(false);
cc.Director:getInstance():setAnimationInterval(1.0 / 60);
require("init");
local MainScene = require("scripts.scenes.MainScene");
cc.Director:getInstance():replaceScene(MainScene.new());


